package net.csdn.business.common.domain.request.mirror;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName: MirroConfigDTO
 * @Description:
 * @Author: zhangyl
 * @Date: 2024/7/18 10:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MirroConfigDTO {

    /** 用户id **/
    //@NotBlank(message = "token不能为空")
    private String token;

    /** 当前用户id **/
    //@NotBlank(message = "userId不能为空")
    private String currUserId;

    /** 要镜像的目标镜像仓库id **/
    @NotNull(message = "projectId不能为空")
    private Long projectId;

    @NotNull(message = "isSync不能为空")
    @Min(value = 0, message = "isSync参数有误：0-关闭，1-开启")
    @Max(value = 1, message = "isSync参数有误：0-关闭，1-开启")
    private Integer isSync=0;

}
